package com.navi168.fwq21.hyzl.mod;

import android.os.Parcel;
import android.os.Parcelable;


public class MypoiItems implements Parcelable {
	private String id="";
	private String title="";
	private String Snippet="";
	private int longit=0;
	private int latit=0;

	public static final Parcelable.Creator<MypoiItems> CREATOR = new Parcelable.Creator<MypoiItems>() {
		// From Parcelable.Creator
		@Override
		public MypoiItems createFromParcel(Parcel in) {
			MypoiItems mpis = new MypoiItems();
			mpis.id = in.readString();
			mpis.title = in.readString();
			mpis.Snippet = in.readString();			
			mpis.longit = in.readInt();
			mpis.latit = in.readInt();

			return mpis;
		}

		// From Parcelable.Creator
		@Override
		public MypoiItems[] newArray(int size) {
			return new MypoiItems[size];
		}
	};

	
	public int describeContents() {
		// TODO Auto-generated method stub
		return 0;
	}

	
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(id);
		dest.writeString(title);
		dest.writeString(Snippet);
		dest.writeInt(longit);
		dest.writeInt(latit);

	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getSnippet() {
		return Snippet;
	}

	public void setSnippet(String snippet) {
		Snippet = snippet;
	}

	public int getLongit() {
		return longit;
	}

	public void setLongit(int longit) {
		this.longit = longit;
	}

	public int getLatit() {
		return latit;
	}

	public void setLatit(int latit) {
		this.latit = latit;
	}
}
